package com.ruihui.activity.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.google.common.base.MoreObjects;

public class CommonsEntityJson implements Serializable{
	 /**
	 * 
	 */
	private static final long serialVersionUID = -2867054062910581856L;
	private Long id;
	    /**
	     * 活动名称
	     */
	    private String name;
	    /**
	     * 活动图片
	     */
	    private String img;
	    /**
	     * 创建时间
	     */
	    private BigDecimal createtime;
	    /**
	     * 结束时间
	     */
	    private BigDecimal endtime;
	    /**
	     * 开始时间
	     */
	    private BigDecimal starttime;
	    /**
	     * 活动首字母判断
	     */
	    private String initials;
	    /**
	     * 类型：1通用，2电脑，3微信
	     */
	    private Integer type;
	    /**
	     * 活动状态
	     */
	    private Integer state;
	    private List<Activity> acList;//产品
	    
	    public Long getId() {
			return id;
		}

		public void setId(Long id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getImg() {
			return img;
		}

		public void setImg(String img) {
			this.img = img;
		}

		public BigDecimal getCreatetime() {
			return createtime;
		}

		public void setCreatetime(BigDecimal createtime) {
			this.createtime = createtime;
		}

		public BigDecimal getEndtime() {
			return endtime;
		}

		public void setEndtime(BigDecimal endtime) {
			this.endtime = endtime;
		}

		public BigDecimal getStarttime() {
			return starttime;
		}

		public void setStarttime(BigDecimal starttime) {
			this.starttime = starttime;
		}

		public String getInitials() {
			return initials;
		}

		public void setInitials(String initials) {
			this.initials = initials;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		public Integer getState() {
			return state;
		}

		public void setState(Integer state) {
			this.state = state;
		}

		public List<Activity> getAcList() {
			return acList;
		}

		public void setAcList(List<Activity> acList) {
			this.acList = acList;
		}

		public CommonsEntityJson() {}
		
		public static CommonsEntityJson getInstance(){
			return new CommonsEntityJson();
		}

		@Override
		public String toString() {
			return MoreObjects.toStringHelper(this).add("id", id)
					.add("name", name)
					.add("img", img)
					.add("createtime", createtime)
					.add("endtime", endtime)
					.add("starttime", starttime)
					.add("initials", initials)
					.add("type", type)
					.add("state", state)
					.add("acList", acList)
					.omitNullValues()
					.toString();
		}

	
		
}
